Skip to content

[feat] Add share card and Open Graph metadata - #13

Merged
joshuadeguzman merged 1 commit into
mainfrom
feat/og-image
Nov 20, 2026
Merged

joshuadeguzman merged 1 commit into
mainfrom
feat/og-image

Conversation

@joshuadeguzman

Copy link
Copy Markdown
Member

What's in this PR

  • Adds a 1200 x 630 share card (public/og.jpg, 53 KB) for Facebook, X, LinkedIn and chat apps, rendered in Chromium with the site's own Google Sans by a new pnpm og script
  • Adds og:image with size and alt text, X summary_large_image, @flutter_ph as the site handle, a canonical URL and a fuller page description
  • Refreshes the README screenshots to the current site and documents the share card

Why not Next's generated opengraph-image

Next's image renderer (Satori) can't parse an OpenType feature in Google Sans, and swapping to another font would put the card off-brand. A small Chromium render keeps it pixel-identical to the site.

Test Plan

  • pnpm og, then checked the image
  • pnpm build: all og:* and twitter:* tags present with absolute https://flutter.ph/og.jpg
  • pnpm test (19 passed), pnpm test:e2e (54 passed)
  • After deploy: Facebook Sharing Debugger and LinkedIn Post Inspector show the card

Please attach screenshots or videos demonstrating the changes:

Share card

Home Events
Home Events

Checklist

  • Link any relevant issues (e.g. Sentry).
  • Create unit tests where applicable.
  • Manually verify that this code change works as advertised.
  • Verify all required analytics events were added.
  • Add relevant documentation and/or update relevant documentation.

Renders a 1200x630 card in Chromium with Google Sans via pnpm og, adds
og:image, twitter summary_large_image, canonical URL and a fuller
description, and refreshes the README screenshots.
@joshuadeguzman
joshuadeguzman merged commit bc3958b into main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant